package _1._0._0._127.ormrpc.services.WSSaleIssueBillFacade;

public class WSSaleIssueBillFacadeSrvProxyProxy implements WSSaleIssueBillFacadeSrvProxy {
    private String _endpoint = null;
    private WSSaleIssueBillFacadeSrvProxy wSSaleIssueBillFacadeSrvProxy = null;

    public WSSaleIssueBillFacadeSrvProxyProxy() {
        _initWSSaleIssueBillFacadeSrvProxyProxy();
    }

    public WSSaleIssueBillFacadeSrvProxyProxy(String endpoint) {
        _endpoint = endpoint;
        _initWSSaleIssueBillFacadeSrvProxyProxy();
    }

    private void _initWSSaleIssueBillFacadeSrvProxyProxy() {
        try {
            wSSaleIssueBillFacadeSrvProxy = (new WSSaleIssueBillFacadeSrvProxyServiceLocator()).getWSSaleIssueBillFacade();
            if (wSSaleIssueBillFacadeSrvProxy != null) {
                if (_endpoint != null)
                    ((javax.xml.rpc.Stub) wSSaleIssueBillFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
                else
                    _endpoint = (String) ((javax.xml.rpc.Stub) wSSaleIssueBillFacadeSrvProxy)._getProperty("javax.xml.rpc.service.endpoint.address");
            }

        } catch (javax.xml.rpc.ServiceException serviceException) {
        }
    }

    public String getEndpoint() {
        return _endpoint;
    }

    public void setEndpoint(String endpoint) {
        _endpoint = endpoint;
        if (wSSaleIssueBillFacadeSrvProxy != null)
            ((javax.xml.rpc.Stub) wSSaleIssueBillFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

    }

    public WSSaleIssueBillFacadeSrvProxy getWSSaleIssueBillFacadeSrvProxy() {
        if (wSSaleIssueBillFacadeSrvProxy == null)
            _initWSSaleIssueBillFacadeSrvProxyProxy();
        return wSSaleIssueBillFacadeSrvProxy;
    }

    public String[] importData(String xmlData) throws java.rmi.RemoteException, saleissuebillfacade.client.WSInvokeException {
        if (wSSaleIssueBillFacadeSrvProxy == null)
            _initWSSaleIssueBillFacadeSrvProxyProxy();
        return wSSaleIssueBillFacadeSrvProxy.importData(xmlData);
    }


}